import pygame
class Kabi:
    def __init__(self,a):
        #初始化位置
        self.screen = a.screen
        self.screen_rect = a.screen.get_rect()

        self.image = pygame.image.load('images/kabi.jpg')
        self.image = pygame.transform.scale(self.image, (100, 100))
        self.rect = self.image.get_rect()

        self.rect.centerx = self.screen_rect.centerx
        self.rect.centery = self.screen_rect.centery


    def blitme(self):
            self.screen.blit(self.image,self.rect)

    def printKabi(self):
        print(self)
